home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / includ~1.z / includ~1 / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-02  |  872 b   |  32 lines

  1. /* The <regexp.h> header is used by the (V8-compatible) regexp(3) routines. */
  2. #ifndef _REGEXP_H
  3. #define _REGEXP_H
  4.  
  5. #ifndef __GNUC__
  6. #define void int
  7. #endif
  8. #define CHARBITS 0377
  9. #define strchr index
  10. #define NSUBEXP  10
  11. typedef struct regexp {
  12.     char *startp[NSUBEXP];
  13.     char *endp[NSUBEXP];
  14.     char regstart;        /* Internal use only. */
  15.     char reganch;        /* Internal use only. */
  16.     char *regmust;        /* Internal use only. */
  17.     int regmlen;        /* Internal use only. */
  18.     char program[1];    /* Unwarranted chumminess with compiler. */
  19. } regexp;
  20.  
  21. /* Function Prototypes. */
  22. #ifndef _ANSI_H
  23. #include <ansi.h>
  24. #endif
  25.  
  26. _PROTOTYPE( regexp *regcomp, (char *__exp)                );
  27. _PROTOTYPE( int regexec, (regexp *_prog, char *__string, int __bolflag) );
  28. _PROTOTYPE( void regsub, (regexp *__prog, char *__source, char *__dest)    );
  29. _PROTOTYPE( void regerror, (char *__message)                 );
  30.  
  31. #endif /* _REGEXP_H */
  32.